home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / GCC 1.37.1r14 / usr / gcc archive / gcc / gcc.rsrc / TEXT_405.txt < prev    next >
Encoding:
Text File  |  1994-02-08  |  2.0 KB  |  44 lines

  1. Linker
  2.  
  3. The linker is used to merge object modules and/or library code
  4. to make a finished application. This version of the linker also
  5. merges the run-time relocating loader with your application
  6. in order to make a stand-alone 32-bit executable.
  7.  
  8. Unlike other linker products there is no segmentation concept,
  9. which is either a good or a bad thing depending on your point 
  10. of view.
  11.  
  12. If your application uses resources (most do), these will can
  13. be manually merged in afterwards using ResEdit (another free
  14. program from Apple). Alternatively you can set your resource
  15. file name in the linker preferences dialog. In this box you
  16. can also set various other defaults that users with Inside Macintosh
  17. will be familiar with. For testing, the defaults should be OK
  18.  
  19. To invoke the linker open all the object browser windows that you
  20. need, and select the GCC/Link menu option or the GCC/Link(partial)
  21. menu option. In either case you must have all the libraries you need 
  22. open to avoid errors. Typically this will include the 32 bit multiply
  23. divide library (gcc-1.37-lib.o) and any libraries of traps needed.
  24. You can also use shift select to select files for linking in open suitcase
  25. windows.
  26.  
  27. There is no smart-linking concept in this application, so a program that
  28. uses any mac trap glue code must load the entire library. However
  29. you can build your own libraries using the 'Build library' menu
  30. Objects in an open library will always be available for linking and will
  31. be loaded if necessary
  32.  
  33. In the link/partial case the output is another object module (linker.o)
  34. which you can inspect with the object browser, in the link (default)
  35. case the output is an application with signature and default
  36. size as given by the linker options dialog.
  37.  
  38. You can execute the new program from the finder. If you need to
  39. debug you can invoke the Debugger() function as the first line
  40. of your main routine. Only MacsBug is supported. Function names
  41. are carried through into MacsBug but data segment names are not.
  42. If you do not have MacsBug installed, your machine will crash if
  43. you invoke Debugger().
  44.